package com.zlx.guguanjia.service;

import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * @Author 周罗校
 * @Description 基础的业务通用父接口接口
 * @ClassName BaseService
 * @date 2020.10.22 15:44:22
 * 该版权归周罗校所有，最终解释权以官方为准
 */
public interface BaseService<T, ID> {


    int deleteByPrimaryKey(ID id);


    int delete(T o);


    int insert(T o);


    int insertSelective(T o);


    boolean existsWithPrimaryKey(ID id);


    List selectAll();


    T selectByPrimaryKey(ID id);


    int selectCount(T o);


    List select(T o);


    T selectOne(T o);


    int updateByPrimaryKey(T o);


    int updateByPrimaryKeySelective(T o);


    int deleteByExample(T o);


    List selectByExample(T o);


    int selectCountByExample(T o);


    T selectOneByExample(T o);


    int updateByExample(T o, ID id);


    int updateByExampleSelective(T o, ID id);


    List selectByExampleAndRowBounds(T o, RowBounds rowBounds);


    List selectByRowBounds(T o, RowBounds rowBounds);


}
